package com.warm.orm.domain.sys;

import com.easy.query.core.annotation.Column;
import com.easy.query.core.annotation.EntityProxy;
import com.easy.query.core.annotation.Table;
import com.easy.query.core.proxy.ProxyEntityAvailable;
import com.warm.orm.domain.sys.proxy.SysRoleDeptProxy;
import lombok.Getter;
import lombok.Setter;

/**
 * 角色和部门关联 sys_role_dept
 *
 * @author warm
 */
@Getter
@Setter
@Table("sys_role_dept")
@EntityProxy
public class SysRoleDept implements ProxyEntityAvailable<SysRoleDept, SysRoleDeptProxy> {
    /**
     * 角色ID
     */
    @Column(primaryKey = true)
    private Long roleId;

    /**
     * 部门ID
     */
    @Column(primaryKey = true)
    private Long deptId;

    @Override
    public Class<SysRoleDeptProxy> proxyTableClass() {
        return SysRoleDeptProxy.class;
    }
}
